From b2396d1f39fc4fa43a21893d050b7013e619d91e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 3 Jan 1994 20:53:26 +0000 Subject: [PATCH] (vc-finish-logentry): Sync the buffer in case the user modified it while editing the comment. --- lisp/vc.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/vc.el b/lisp/vc.el index c469c7ca189..3439b354b24 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -668,6 +668,10 @@ If nil, uses `change-log-default-name'." (setq vc-comment-ring (make-ring vc-maximum-comment-ring-size))) (ring-insert vc-comment-ring (buffer-string)) )) + ;; Sync parent buffer in case the user modified it while editing the comment. + (save-excursion + (set-buffer vc-parent-buffer) + (vc-buffer-sync)) ;; OK, do it to it (if vc-log-operation (save-excursion -- 2.30.2